package cn.maihe.elg.operation.common.auth;

/**
 * @Description
 * @Author WJH
 * @Date 2021/04/15
 */
public interface Authorization {

    /**
     * 签名信息
     *
     * @param body      待签名对象
     * @param timestamp 时间戳
     * @return
     */
    String signature(Object body, String timestamp);


    /**
     * 签名验证
     *
     * @param reqBody   源请求信息
     * @param signedMsg 源签名信息
     * @param timestamp 源签名时间戳
     * @return
     */
    boolean verifySignature(Object reqBody, String signedMsg, String timestamp);
}
